<h3>URLs that should be turned into links</h3>

<style>
input[type=text] { width: 450px }
</style>

<ul>
	<li><input type="text" readonly="readonly" value="https://foobar.com"></li>
	<li><input type="text" readonly="readonly" value="foo@foobar.com"></li>
</ul>

<h3>URLs that shouldn't be turned into links</h3>

<ul>
	<li><input type="text" readonly="readonly" value="https://fobar.com"></li>
	<li><input type="text" readonly="readonly" value="foo@fobar.com"></li>
</ul>

<textarea id="editor" cols="10" rows="10">
	<p>Foo bar.</p>
</textarea>
<script>
	// IE has its own link completion.
	if ( CKEDITOR.env.ie && !CKEDITOR.env.edge ) {
		bender.ignore();
	}

	CKEDITOR.replace('editor', {
		autolink_urlRegex: /^https:\/\/foobar.com$/,
		autolink_emailRegex: /^foo@foobar\.com$/
	} );
</script>
